import matplotlib.pyplot as plot

if __name__ == "__main__":


    v = [0.034,
         97.861,
         175.370]

    plot.ylabel('average billion interactions per second')
    plot.xticks(range(3),["linear","optimize 1","optimize 2"])
    plot.plot(range(3),v,marker='o')

    for a, b in zip(range(3), v):
        plot.text(a, b, b, ha='center', va='bottom')
    plot.show()
    '''
    plot.xticks(range(5),[x for x in dic.keys()],)
    plot.subplot(1,2,1)
    plot.yscale("log")
    plot.ylim(1e-5,1)
    plot.plot(range(5),v,label="time cost")
    plot.legend()
    plot.title("time cost")
    nv = [v[0]/x for x in v]

    plot.subplot(1,2,2)
    plot.plot(range(5),nv,label="speed up")
    plot.plot(range(5),[pow(2,x) for x in range(5)],label="y = x")
    plot.legend()
    plot.title("speed up ratio")
    plot.show()

    '''